﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Vega.USiteBuilder;
using SPCFMedicineInformer.DocumentTypes.Base;
using SPCFMedicineInformer.Masterpages;
using SPCFMedicineInformer.Constants;

namespace SPCFMedicineInformer.DocumentTypes
{
    [DocumentType(Name = "ContactUsPage", AllowedTemplates = new string[] { "ContactUsPageTemplate" }
        , DefaultTemplate = typeof(ContactUsPageTemplate))]
    public class ContactUsPage : PageBase
    {

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Host",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public string SmtpHost { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Port",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public string SmtpPort { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Sender",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public string SmtpSender { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Subject",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public string SmtpSubject { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Username",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public string SmtpUsername { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Password",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public string SmtpPassword { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.TrueFalse, Name = "IsEnableSSL",
        Description = "",
        Tab = Tabs.SMTPSettings)]
        public bool SmtpEnableSSL { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Name = "Content", Description = "",
            Tab = Constants.Tabs.Content)]
        public string Content { get; set; }
        
    }
}
